//
//  ZHGridFlowLayout.m
//  sc-cyan-ios
//
//  Created by lj on 2017/12/28.
//  Copyright © 2017年 greenbuilding. All rights reserved.
//

#import "ZHGridFlowLayout.h"

@implementation ZHGridFlowLayout

- (void)prepareLayout{
    [super prepareLayout];
    
    self.scrollDirection = UICollectionViewScrollDirectionVertical;
    
}

- (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBounds{
    return YES;
}

- (NSArray<UICollectionViewLayoutAttributes *> *)layoutAttributesForElementsInRect:(CGRect)rect{
    
    NSArray *arr = [super layoutAttributesForElementsInRect: rect];
    
    return arr;
}

@end
